#include<bits/stdc++.h>
using namespace std;
int t;
int n[15];
int a[20005];
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    cin>>t;
    for(int i=1;i<=t;i++){
        cin>>n[i];
        for(int j=1;j<=n[i];j++){
            cin>>a[j];
        }
    }
    cout<<1<<endl;
    return 0;
}